package com.qingke.notlonely.command.system;

import java.util.List;

import com.qingke.notlonely.bean.User;
import com.qingke.notlonely.command.SystemCommand;
import com.qingke.notlonely.util.NLConsole;

public class ListUserByGenderAndBeInvited extends SystemCommand{

	@Override
	public void execute() {
		String gender="Ů";
		List<?> list=dao.selectUserByBeInvitedTimes();
		for(Object o:list){
			User user=(User)((Object[])o)[0];
			if(!user.getGender().equals(gender))
				continue;
			long count=(long)((Object[])o)[1];
			
			NLConsole.println(user+",[inviter times]:"+count);
		}
		
	}

}
